import {axios} from '@/utils/request'

// api接口列表
const api = {
    page: '/pay/demo/order/page',
    submit: '/pay/demo/order/submit',
    refund: '/pay/demo/order/refund',
}

export function page(params) {
    return axios({
        url: api.page,
        method: 'get',
        params
    })
}

export function submit(params) {
    return axios({
        url: api.submit,
        method: 'post',
        params
    })
}

export function refund(id) {
    return axios({
        url: api.refund,
        method: 'post',
        params: {
            id: id
        }
    })
}